package ObjectArray;

/**
 * Created by sunwei on 2017/10/13
 * Time:15:27
 */
public class PersonSolveApp {
    public static void main(String[] args) {
        int size =100;
        PersonSolve personSolve = new PersonSolve(size);
        personSolve.insertPerson("赵","一曼",22);
        personSolve.insertPerson("钱","钟书",24);
        personSolve.insertPerson("孙","子文",22);
        personSolve.insertPerson("李","宗仁",22);
        personSolve.insertPerson("周","树人",22);
        personSolve.insertPerson("吴","敦义",22);
        personSolve.insertPerson("郑","贺钦",22);
        personSolve.insertPerson("王","臻逸",22);

        System.out.println("数组里面的人的信息为：");
        personSolve.displayPerson();
        System.out.println("查找子文这个人");
       System.out.println( personSolve.find("子文").getLastName());
        System.out.println("删除子文这个人");
        personSolve.delete("子文");
        System.out.println("删除人后数组里面人的信息为：");
        personSolve.displayPerson();
    }
}
